;; 设置语言环境
(set-language-environment 'utf-8)
(prefer-coding-system 'chinese-big5)
(prefer-coding-system 'chinese-gbk)
(prefer-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
;; 终端的编码
(set-terminal-coding-system 'utf-8)
;; buffer内文字的编码
(set-buffer-file-coding-system 'utf-8)
;;
(set-selection-coding-system 'utf-8)
(set-clipboard-coding-system 'chinese-gbk)
;; 使用chinese-gbk显示文件名
(set-file-name-coding-system 'chinese-gbk)
;;
(modify-coding-system-alist 'process "*" 'utf-8)
;; (setq default-process-coding-system '(utf-8 . utf-8))
(setq-default pathname-coding-system 'chinese-gbk)


;;字体解码
(setq font-encoding-alist
      (append
       '(("MuleTibetan-0" (tibetan . 0))
	 ("GB2312" (chinese-gb2312 . 0))
	 ("GBK" (chinese-gbk . 0))
	 ("BIG5" (chinese-big5 . 0))
	 ("JISX0208" (japanese-jisx0208 . 0))
	 ("JISX0212" (japanese-jisx0212 . 0))
	 ("VISCII" (vietnamese-viscii-lower . 0))
	 ("KSC5601" (korean-ksc5601 . 0))
	 ("MuleArabic-0" (arabic-digit . 0))
	 ("MuleArabic-1" (arabic-1-column . 0))
	 ("MuleArabic-2" (arabic-2-column . 0)))
       font-encoding-alist))
